package com.itheima.test3;

public class Cat extends Animal {
    private String type;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public void withPeople() {
        System.out.println("猫咪可以陪伴人类玩耍!");
    }

    public Cat() {
    }

    public Cat(String name, int age, String type) {
        super(name, age);
        this.type = type;
    }
}
